package com.pattern.design.architect.mvp;

/**
 * @author LIN
 * @date 2023-02-14 21:38
 */
public class ConcreteWindowedPresenter implements Presentable {
    private ConcreteWindowedView windowedView;
    private ConcretePresenter concretePresenter;

    public ConcreteWindowedPresenter(ConcreteWindowedView windowedView) {
        this.windowedView = windowedView;
        this.concretePresenter = new ConcretePresenter(windowedView);
    }

    @Override
    public void present() {
        // Configure presenter
        concretePresenter.present();
        // Register window listeners
        this.windowedView.addWindowListerner();
    }
}
